package com.ficus.road.maintain.core.exception;

import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = false)
public class CommonException extends RuntimeException {
    private Integer rtn;

    public CommonException(String message, Integer rtn, Throwable cause)
    {
        super(message, cause);
        this.rtn = rtn;
    }

    public CommonException(String message, Integer rtn)
    {
        super(message);
        this.rtn = rtn;
    }
}
